package Mediator_Pattern.temperature;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Component_Mwdiator extends Mwdiator{
    public Button button;
    public Strip strip;
    public Text text;
    @Override
    public void start(Component e) {
        if(e==button){
            System.out.println("点击按钮");
            button.up();
            button.down();
        }
        else if(e==strip){
            System.out.println("移动滑动条");
            strip.up();
            strip.down();
        }
        else if(e==text){
            System.out.println("改变文案");
            text.up();
            text.down();
        }
    }
}
